﻿ 
 
using Common.EF.Map;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Api.Mapping.T4
 {
	using FCP.Data.Entity;
			#region  t_label
     public partial class t_labelMap  :EntityBaseMap< t_label >    
	{   
        public override void Configure(EntityTypeBuilder<t_label> builder)
		{
			base.Configure(builder);

			
		} 

     }
	 #endregion
					#region  t_label_detail
     public partial class t_label_detailMap  :EntityBaseMap< t_label_detail >    
	{   
        public override void Configure(EntityTypeBuilder<t_label_detail> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.label_id).HasMaxLength(50);
builder.Property(t => t.lang).HasMaxLength(600);
builder.Property(t => t.label).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_btnBase
     public partial class t_btnBaseMap <T> :t_fcpBaseMap< T >where T :  t_btnBase    
	{   
        public override void Configure(EntityTypeBuilder<T> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.code).HasMaxLength(600);
builder.Property(t => t.btn_label_id).HasMaxLength(50);
builder.Ignore(t => t.vir_btn_label);
builder.Property(t => t.format_func_name).HasMaxLength(600);
builder.Property(t => t.btn_css).HasMaxLength(600);
builder.Property(t => t.btn_icon).HasMaxLength(600);
builder.Property(t => t.form_code).HasMaxLength(600);
builder.Property(t => t.custom_params).HasMaxLength(600);
builder.Property(t => t.service_code).HasMaxLength(600);
builder.Property(t => t.api).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_editTableBase
     public partial class t_editTableBaseMap <T> :t_fcpTreeBaseMap< T >where T :  t_editTableBase    
	{   
        public override void Configure(EntityTypeBuilder<T> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.code).HasMaxLength(600);
builder.Property(t => t.entity_name).HasMaxLength(600);
builder.Property(t => t.label_label_id).HasMaxLength(50);
builder.Ignore(t => t.vir_label);
builder.Property(t => t.custom_params).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_fcpBase
     public partial class t_fcpBaseMap <T> :EntityBaseMap< T >where T :  t_fcpBase    
	{   
        public override void Configure(EntityTypeBuilder<T> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.fcp_form_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_fcpTreeBase
     public partial class t_fcpTreeBaseMap <T> :TreeEntityBaseMap< T >where T :  t_fcpTreeBase    
	{   
        public override void Configure(EntityTypeBuilder<T> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.fcp_form_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_fieldBase
     public partial class t_fieldBaseMap <T> :t_fcpBaseMap< T >where T :  t_fieldBase    
	{   
        public override void Configure(EntityTypeBuilder<T> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.field_label_id).HasMaxLength(50);
builder.Ignore(t => t.vir_field_label);
builder.Property(t => t.show_form_code).HasMaxLength(600);
builder.Property(t => t.show_id_field).HasMaxLength(600);
builder.Property(t => t.custom_params).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_fieldEditTableBase
     public partial class t_fieldEditTableBaseMap <T> :t_fieldBaseMap< T >where T :  t_fieldEditTableBase    
	{   
        public override void Configure(EntityTypeBuilder<T> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.fixed_type).HasMaxLength(600);
builder.Property(t => t.default_value).HasMaxLength(600);
builder.Property(t => t.dropdown_api).HasMaxLength(600);
builder.Property(t => t.dropdown_entity_name).HasMaxLength(600);
builder.Property(t => t.dropdown_service_code).HasMaxLength(600);
builder.Property(t => t.dropdown_id_field).HasMaxLength(600);
builder.Property(t => t.dropdown_filter_field).HasMaxLength(600);
builder.Property(t => t.dropdown_sort_field).HasMaxLength(600);
builder.Property(t => t.dropdown_sort_order).HasMaxLength(600);
builder.Property(t => t.dropdown_label_field).HasMaxLength(600);
builder.Property(t => t.dropdown_show_field).HasMaxLength(600);
builder.Property(t => t.dropdown_src_field).HasMaxLength(600);
builder.Property(t => t.dropdown_dest_field).HasMaxLength(600);
builder.Property(t => t.enum_name).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_filterFieldBase
     public partial class t_filterFieldBaseMap <T> :t_fcpBaseMap< T >where T :  t_filterFieldBase    
	{   
        public override void Configure(EntityTypeBuilder<T> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.field_name).HasMaxLength(600);
builder.Property(t => t.value).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_filterGroupBase
     public partial class t_filterGroupBaseMap <T> :t_fcpTreeBaseMap< T >where T :  t_filterGroupBase    
	{   
        public override void Configure(EntityTypeBuilder<T> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.code).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_panelBase
     public partial class t_panelBaseMap <T> :t_fcpBaseMap< T >where T :  t_panelBase    
	{   
        public override void Configure(EntityTypeBuilder<T> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.label_label_id).HasMaxLength(50);
builder.Ignore(t => t.vir_label);

		} 

     }
	 #endregion
					#region  t_chart
     public partial class t_chartMap  :t_fcpBaseMap< t_chart >    
	{   
        public override void Configure(EntityTypeBuilder<t_chart> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.code).HasMaxLength(600);
builder.Property(t => t.label_label_id).HasMaxLength(50);
builder.Ignore(t => t.vir_label);
builder.Property(t => t.api).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_custom
     public partial class t_customMap  :t_fcpBaseMap< t_custom >    
	{   
        public override void Configure(EntityTypeBuilder<t_custom> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.code).HasMaxLength(600);
builder.Property(t => t.label_label_id).HasMaxLength(50);
builder.Ignore(t => t.vir_label);
builder.Property(t => t.custom_info).HasMaxLength(600);
builder.Property(t => t.custom_params).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_custom_btn
     public partial class t_custom_btnMap  :t_btnBaseMap< t_custom_btn >    
	{   
        public override void Configure(EntityTypeBuilder<t_custom_btn> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.custom_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_edit
     public partial class t_editMap  :t_editTableBaseMap< t_edit >    
	{   
        public override void Configure(EntityTypeBuilder<t_edit> builder)
		{
			base.Configure(builder);

			builder.HasIndex("fcp_form_id");
builder.Property(t => t.save_api).HasMaxLength(600);
builder.Property(t => t.service_code).HasMaxLength(600);
builder.Property(t => t.children_id_field_name).HasMaxLength(600);
builder.Property(t => t.parent_id_field_name).HasMaxLength(600);
builder.Property(t => t.parent_nav_field_name).HasMaxLength(600);
builder.Property(t => t.field_sort_list).HasMaxLength(600);
builder.Property(t => t.field_order_list).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_edit_btn
     public partial class t_edit_btnMap  :t_btnBaseMap< t_edit_btn >    
	{   
        public override void Configure(EntityTypeBuilder<t_edit_btn> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.edit_id);
builder.Property(t => t.edit_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_edit_field
     public partial class t_edit_fieldMap  :t_fieldEditTableBaseMap< t_edit_field >    
	{   
        public override void Configure(EntityTypeBuilder<t_edit_field> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.edit_id);
builder.Property(t => t.edit_id).HasMaxLength(50);
builder.Property(t => t.code).HasMaxLength(600);
builder.Property(t => t.format_func_name).HasMaxLength(600);
builder.Property(t => t.edit_panel_id).HasMaxLength(50);
builder.Ignore(t => t.vir_edit_panel_label);
builder.Property(t => t.edit_form_code).HasMaxLength(600);
builder.Property(t => t.prompt_info_label_id).HasMaxLength(50);
builder.Ignore(t => t.vir_prompt_info_label);
builder.Property(t => t.verify_express).HasMaxLength(600);
builder.Property(t => t.verify_error_label_id).HasMaxLength(50);
builder.Ignore(t => t.vir_verify_error_label);
builder.Property(t => t.serial_type_code).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_edit_field_filter_field
     public partial class t_edit_field_filter_fieldMap  :t_filterFieldBaseMap< t_edit_field_filter_field >    
	{   
        public override void Configure(EntityTypeBuilder<t_edit_field_filter_field> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.edit_id);
builder.Property(t => t.edit_id).HasMaxLength(50);
builder.HasIndex(t => t.edit_field_id);
builder.Property(t => t.edit_field_id).HasMaxLength(50);
builder.Property(t => t.edit_field_filter_group_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_edit_field_filter_group
     public partial class t_edit_field_filter_groupMap  :t_filterGroupBaseMap< t_edit_field_filter_group >    
	{   
        public override void Configure(EntityTypeBuilder<t_edit_field_filter_group> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.edit_id).HasMaxLength(50);
builder.Property(t => t.edit_field_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_edit_field_map
     public partial class t_edit_field_mapMap  :t_fcpBaseMap< t_edit_field_map >    
	{   
        public override void Configure(EntityTypeBuilder<t_edit_field_map> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.edit_field_id);
builder.Property(t => t.edit_field_id).HasMaxLength(50);
builder.Property(t => t.src_nav).HasMaxLength(600);
builder.Property(t => t.dest_nav).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_edit_field_map_detail
     public partial class t_edit_field_map_detailMap  :t_fcpBaseMap< t_edit_field_map_detail >    
	{   
        public override void Configure(EntityTypeBuilder<t_edit_field_map_detail> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.edit_field_map_id);
builder.Property(t => t.edit_field_map_id).HasMaxLength(50);
builder.Property(t => t.src_field_name).HasMaxLength(600);
builder.Property(t => t.dest_field_name).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_edit_panel
     public partial class t_edit_panelMap  :t_panelBaseMap< t_edit_panel >    
	{   
        public override void Configure(EntityTypeBuilder<t_edit_panel> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.edit_id);
builder.Property(t => t.edit_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_enum
     public partial class t_enumMap  :EntityBaseMap< t_enum >    
	{   
        public override void Configure(EntityTypeBuilder<t_enum> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.enum_name).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_enum_detail
     public partial class t_enum_detailMap  :EntityBaseMap< t_enum_detail >    
	{   
        public override void Configure(EntityTypeBuilder<t_enum_detail> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.enum_id).HasMaxLength(50);
builder.Property(t => t.label).HasMaxLength(600);
builder.Property(t => t.value).HasMaxLength(600);
builder.Property(t => t.label_label_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_form
     public partial class t_formMap  :EntityBaseMap< t_form >    
	{   
        public override void Configure(EntityTypeBuilder<t_form> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.code);
builder.Property(t => t.code).HasMaxLength(40);
builder.Property(t => t.name).HasMaxLength(600);
builder.Property(t => t.js_file_paths).HasMaxLength(600);
builder.Property(t => t.remark).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_form_version
     public partial class t_form_versionMap  :EntityBaseMap< t_form_version >    
	{   
        public override void Configure(EntityTypeBuilder<t_form_version> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.remove_cookie_key).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_import
     public partial class t_importMap  :EntityBaseMap< t_import >    
	{   
        public override void Configure(EntityTypeBuilder<t_import> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.code).HasMaxLength(20);
builder.Property(t => t.name).HasMaxLength(60);
builder.Property(t => t.edit_form_code).HasMaxLength(20);
builder.Property(t => t.att_files).HasMaxLength(2000);
builder.Property(t => t.remark).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_import_detail
     public partial class t_import_detailMap  :EntityBaseMap< t_import_detail >    
	{   
        public override void Configure(EntityTypeBuilder<t_import_detail> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.import_id).HasMaxLength(50);
builder.Property(t => t.edit_id).HasMaxLength(50);
builder.Property(t => t.summary).HasMaxLength(60);
builder.Property(t => t.sheet_key_field_name).HasMaxLength(60);

		} 

     }
	 #endregion
					#region  t_import_field
     public partial class t_import_fieldMap  :EntityBaseMap< t_import_field >    
	{   
        public override void Configure(EntityTypeBuilder<t_import_field> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.import_detail_id).HasMaxLength(50);
builder.Property(t => t.edit_field_id).HasMaxLength(50);
builder.Property(t => t.field_label).HasMaxLength(100);
builder.Property(t => t.field_name).HasMaxLength(60);
builder.Property(t => t.excel_field_name).HasMaxLength(60);

		} 

     }
	 #endregion
					#region  t_search
     public partial class t_searchMap  :t_fcpBaseMap< t_search >    
	{   
        public override void Configure(EntityTypeBuilder<t_search> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.code).HasMaxLength(600);
builder.Property(t => t.label_label_id).HasMaxLength(50);
builder.Ignore(t => t.vir_label);
builder.Property(t => t.entity_name).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_search_field
     public partial class t_search_fieldMap  :t_fieldBaseMap< t_search_field >    
	{   
        public override void Configure(EntityTypeBuilder<t_search_field> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.search_id).HasMaxLength(50);
builder.Property(t => t.code).HasMaxLength(600);
builder.Property(t => t.default_value).HasMaxLength(600);
builder.Property(t => t.enum_name).HasMaxLength(600);
builder.Property(t => t.dropdown_api).HasMaxLength(600);
builder.Property(t => t.dropdown_entity_name).HasMaxLength(600);
builder.Property(t => t.dropdown_service_code).HasMaxLength(600);
builder.Property(t => t.dropdown_id_field).HasMaxLength(600);
builder.Property(t => t.dropdown_filter_field).HasMaxLength(600);
builder.Property(t => t.dropdown_sort_field).HasMaxLength(600);
builder.Property(t => t.dropdown_sort_order).HasMaxLength(600);
builder.Property(t => t.dropdown_label_field).HasMaxLength(600);
builder.Property(t => t.dropdown_show_field).HasMaxLength(600);
builder.Property(t => t.dropdown_src_field).HasMaxLength(600);
builder.Property(t => t.dropdown_dest_field).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_search_field_filter_field
     public partial class t_search_field_filter_fieldMap  :t_filterFieldBaseMap< t_search_field_filter_field >    
	{   
        public override void Configure(EntityTypeBuilder<t_search_field_filter_field> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.search_id).HasMaxLength(50);
builder.Property(t => t.search_field_id).HasMaxLength(50);
builder.Property(t => t.search_field_filter_group_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_search_field_filter_group
     public partial class t_search_field_filter_groupMap  :t_filterGroupBaseMap< t_search_field_filter_group >    
	{   
        public override void Configure(EntityTypeBuilder<t_search_field_filter_group> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.search_id).HasMaxLength(50);
builder.Property(t => t.search_field_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_table
     public partial class t_tableMap  :t_editTableBaseMap< t_table >    
	{   
        public override void Configure(EntityTypeBuilder<t_table> builder)
		{
			base.Configure(builder);

			builder.HasIndex("fcp_form_id");
builder.Property(t => t.api).HasMaxLength(600);
builder.Property(t => t.service_code).HasMaxLength(600);
builder.Property(t => t.field_sort).HasMaxLength(600);
builder.Property(t => t.field_sort_list).HasMaxLength(600);
builder.Property(t => t.field_order_list).HasMaxLength(600);
builder.Property(t => t.class_field_name).HasMaxLength(600);
builder.Property(t => t.class_func_name).HasMaxLength(600);
builder.Property(t => t.page_position).HasMaxLength(600);
builder.Property(t => t.parent_src_field_name).HasMaxLength(600);
builder.Property(t => t.children_filter_field_name).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_table_btn
     public partial class t_table_btnMap  :t_btnBaseMap< t_table_btn >    
	{   
        public override void Configure(EntityTypeBuilder<t_table_btn> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.table_id);
builder.Property(t => t.table_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_table_field
     public partial class t_table_fieldMap  :t_fieldEditTableBaseMap< t_table_field >    
	{   
        public override void Configure(EntityTypeBuilder<t_table_field> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.table_id);
builder.Property(t => t.table_id).HasMaxLength(50);
builder.Property(t => t.format_func_name).HasMaxLength(600);
builder.Property(t => t.table_panel_id).HasMaxLength(50);
builder.Ignore(t => t.vir_table_panel_label);

		} 

     }
	 #endregion
					#region  t_table_field_filter_field
     public partial class t_table_field_filter_fieldMap  :t_filterFieldBaseMap< t_table_field_filter_field >    
	{   
        public override void Configure(EntityTypeBuilder<t_table_field_filter_field> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.table_id);
builder.Property(t => t.table_id).HasMaxLength(50);
builder.Property(t => t.table_field_id).HasMaxLength(50);
builder.Property(t => t.table_field_filter_group_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_table_field_filter_group
     public partial class t_table_field_filter_groupMap  :t_filterGroupBaseMap< t_table_field_filter_group >    
	{   
        public override void Configure(EntityTypeBuilder<t_table_field_filter_group> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.table_id).HasMaxLength(50);
builder.Property(t => t.table_field_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_table_filter_field
     public partial class t_table_filter_fieldMap  :t_filterFieldBaseMap< t_table_filter_field >    
	{   
        public override void Configure(EntityTypeBuilder<t_table_filter_field> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.table_id);
builder.Property(t => t.table_id).HasMaxLength(50);
builder.Property(t => t.table_filter_group_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_table_filter_group
     public partial class t_table_filter_groupMap  :t_filterGroupBaseMap< t_table_filter_group >    
	{   
        public override void Configure(EntityTypeBuilder<t_table_filter_group> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.table_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_table_panel
     public partial class t_table_panelMap  :t_panelBaseMap< t_table_panel >    
	{   
        public override void Configure(EntityTypeBuilder<t_table_panel> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.table_id);
builder.Property(t => t.table_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_tree
     public partial class t_treeMap  :t_fcpBaseMap< t_tree >    
	{   
        public override void Configure(EntityTypeBuilder<t_tree> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.code).HasMaxLength(600);
builder.Property(t => t.label_label_id).HasMaxLength(50);
builder.Ignore(t => t.vir_label);
builder.Property(t => t.api).HasMaxLength(600);
builder.Property(t => t.entity_name).HasMaxLength(600);
builder.Property(t => t.field_sort).HasMaxLength(600);
builder.Property(t => t.parent_src_field_name).HasMaxLength(600);
builder.Property(t => t.custom_params).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_tree_btn
     public partial class t_tree_btnMap  :t_btnBaseMap< t_tree_btn >    
	{   
        public override void Configure(EntityTypeBuilder<t_tree_btn> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.tree_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_tree_field
     public partial class t_tree_fieldMap  :t_fieldBaseMap< t_tree_field >    
	{   
        public override void Configure(EntityTypeBuilder<t_tree_field> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.tree_id).HasMaxLength(50);

		} 

     }
	 #endregion
		 }

 